home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Leser 19
/
Amiga Plus Leser CD 19.iso
/
Online
/
AmigaTalk
/
intuition
/
Font.st
< prev
next >
Wrap
Text File
|
2002-01-13
|
1KB
|
49 lines
"----------------------------------------------"
" Font Class implements control of Amiga Fonts."
"----------------------------------------------"
Class Font :Glyph ! private fontName !
[
dispose
<primitive 188 4 private>.
^ nil
|
getFont
^ private
|
getName
^ fontName <- <primitive 188 6 0 private> "return ta_Name"
|
setName: newName
<primitive 188 7 0 newName private>. "set ta_Name"
fontName <- newName
|
getYSize
^ <primitive 188 6 1 private> "return ta_YSize"
|
setYSize: newYSize
<primitive 188 7 1 newYSize private> "set ta_YSize"
|
getStyle
^ <primitive 188 6 2 private> "return ta_Style"
|
setStyle: newStyle
<primitive 188 7 2 newStyle private> "set ta_Style"
"NORMAL=0, UNDERLINED=1, BOLD=2, ITALIC=4"
|
getFlags
^ <primitive 188 6 3 private> "return ta_Flags"
|
setFlags: newFlags
<primitive 188 7 3 newFlags private> "set ta_Flags"
"ROMFONT=1, DISKFONT=2, REVPATH=4, TALLDOT=8, WIDEDOT=16"
"PROPORTIONAL=32, DESIGNED=64, REMOVED=128"
|
new: newFontName " example: 'topaz.font' "
private <- <primitive 188 5 newFontName>.
fontName <- newFontName.
^ self
]